﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Header.ascx.cs" Inherits="Sbook.Control.Menu.Header" %>
<%@ Register Src="~/Control/Menu/MenuTop.ascx"  TagName="MenuTop" TagPrefix="UC" %>


<div class="header">
    	<!-- logo --> 
    	<div class="logo">
            	<a href="/index.aspx"><img src="/images/logo_sach.gif" alt="" width="158" height="161" /></a>
    	</div>
        <!-- close logo --> 
        <!-- header_top --> 
        <div class="header_top">
        	<!-- menu_top --> 
	    	<UC:MenuTop runat="server" ID="Menu1"></UC:MenuTop>

            <!-- close menu_top --> 
            <!-- hỗ trợ trực tuyến --> 
            <div class="hotrotructuyen">
        		<a href="ymsgr:sendIM?huy_xda_pm1&amp;m=Chào bạn!"><img src="http://mail.opi.yahoo.com/online?u=huy_xda_pm1&amp;m=g&amp;t=2" alt="" width="121" height="34" /></a>
            	<a href="/ShoppingCart.aspx"><img src="/images/capsach.png" alt="" width="121" height="34" /></a>
        	</div>
            <!-- close hỗ trợ trực tuyến --> 
            <!-- search --> 
            <div class="search">
            	
                	<input type="text" name="txtsearch" style="width:250px; height:20px; border-radius: 5px;" value="Tìm kiếm..." onfocus="if(this.value=='Tìm kiếm...')this.value='';" onblur="if(this.value=='')this.value='Tìm kiếm...';"/>
                    <input type="button" name="btsearch" id="btnSearch" value="Theo tên, tác giả" style="height:25px; cursor:pointer" />
                 
            </div>

            <script type="text/javascript">
                $(document).ready(function () {
                    $('div.search input[type=button]#btnSearch').click(function () {
                        var txtSearch = $('div.search input[type=text]').val();
                        window.location.href = "/Search.aspx?t=" + txtSearch;
                    });
                });
            </script>
            <!-- close search --> 
        </div>
        <!-- close header_top --> 
    </div>